﻿#ifndef NIXIETUBE_H
#define NIXIETUBE_H

#include <QWidget>
#include <QVBoxLayout>
//#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>

class NixieTube : public QWidget
{
    Q_OBJECT
public:
    explicit NixieTube(QWidget *parent = nullptr);
    ~NixieTube();

public:
    void SetCurrentNum(int num);
    int GetCurrentNum( void ) const;

    void SetMinNum(int num);
    void SetMaxNum(int num);

    void SetButtonVisible(bool state);

private:
    void InitUi( void );
    void InitProperty( void );

signals:
    void currentnumed(int);

public slots:
    void on_reset();

private:
    int m_iCurrent_Num;
    int m_iMin_Num;
    int m_iMax_Num;
    QVBoxLayout *m_pRootLayout;
    QPushButton *m_pAddButton;
    QLabel *m_pNumLabel;
    QPushButton *m_pSubtractButton;

};

#endif // NIXIETUBE_H
